String.prototype.format = function() {
	var e = (!arguments[0] || typeof arguments[0] == "undefined") ? "": arguments[0].toString();
	var d = /(.*?)({(\d+)(:([0-9a-z]+))?})/ig;
	var c = this.match(d);
	if (c) {
		for (var b = 0,
		a = c.length; b < a; b++) {
			c[b] = c[b].replace(d, "$1");
			switch (typeof arguments[parseInt(RegExp.$3)]) {
			case "undefined":
				c[b] += RegExp.$2;
				break;
			case "number":
				c[b] += (isNaN(RegExp.$5) || RegExp.$5 == "") ? arguments[parseInt(RegExp.$3)] : arguments[parseInt(RegExp.$3)].toString(Math.max(Math.min(Math.round(RegExp.$5), 36), 2));
				break;
			default:
				c[b] += arguments[parseInt(RegExp.$3)]
			}
		}
		c.push(this.replace(d, ""));
		return c.join("")
	}
	return this
};
if (typeof Str == "undefined") {
	Str = {}
}
Str.divideNumber = function(d) {
	var c = Math.ceil(d.length / 3);
	var a = "";
	for (var b = c; b > 0; b--) {
		if (d.length - (b - 1) * 3 <= 0) {
			left = 0
		} else {
			left = d.length - (b - 1) * 3
		}
		a += "," + d.substring(left, d.length - b * 3)
	}
	a = a.substring(1, a.length);
	return a
};
String.prototype.getLen = function() {
	var b = this;
	if (typeof b == "undefined") {
		return 0
	}
	var a = b.match(/[^\x00-\x80]/g);
	return (b.length + (!a ? 0 : a.length))
};
if (typeof Str == "undefined") {
	var Str = {}
}
Str.trancate = function(d, a, c) {
	c = c || "...";
	if (d.getLen() <= a) {
		return d
	}
	var b = d.replace(/\*/g, " ").replace(/[^\x00-\xff]/g, "**");
	d = d.slice(0, b.slice(0, a).replace(/\*\*/g, " ").replace(/\*/g, "").length);
	d = d.slice(0, d.length - 1) + c;
	return d
};
var $addEvent = function(f, d, c, a) {
	var e = typeof f == "string" ? $E(f) : f;
	if (typeof a == "undefined") {
		a = false
	}
	if (typeof c == "undefined") {
		c = "click"
	}
	if (e.addEventListener) {
		e.addEventListener(c, d, a);
		return true
	} else {
		if (e.attachEvent) {
			var b = e.attachEvent("on" + c, d);
			return true
		} else {
			e["on" + c] = d
		}
	}
};
var Url = function(a) {
	a = a || "";
	this.url = a;
	this.query = {};
	this.parse()
}; (function(a) {
	a.prototype = {
		parse: function(b) {
			if (b) {
				this.url = b
			}
			this.parseAnchor();
			this.parseParam()
		},
		parseAnchor: function() {
			var b = this.url.match(/\#(.*)/);
			b = b ? b[1] : null;
			this._anchor = b;
			if (b != null) {
				this.anchor = this.getNameValuePair(b);
				this.url = this.url.replace(/\#.*/, "")
			}
		},
		parseParam: function() {
			var b = this.url.match(/\?([^\?]*)/);
			b = b ? b[1] : null;
			if (b != null) {
				this.url = this.url.replace(/\?([^\?]*)/, "");
				this.query = this.getNameValuePair(b)
			}
		},
		getNameValuePair: function(c) {
			var b = {};
			c.replace(/([^&=]*)(?:\=([^&]*))?/gim,
			function(d, f, e) {
				if (f == "") {
					return
				}
				b[f] = e || ""
			});
			return b
		},
		getParam: function(b) {
			return this.query[b] || ""
		},
		clearParam: function() {
			this.query = {}
		},
		setParam: function(b, c) {
			if (b == null || b == "" || typeof(b) != "string") {
				throw new Error("no param name set")
			}
			this.query = this.query || {};
			this.query[b] = c
		},
		setParams: function(b) {
			this.query = b
		},
		serialize: function(d) {
			var b = [];
			for (var c in d) {
				if (d[c] == null || d[c] == "") {
					b.push(c + "=")
				} else {
					b.push(c + "=" + d[c])
				}
			}
			return b.join("&")
		},
		toString: function() {
			var b = this.serialize(this.query);
			return this.url + (b.length > 0 ? "?" + b: "") + (this.anchor ? "#" + this.serialize(this.anchor) : "")
		},
		getHashStr: function(b) {
			return this.anchor ? "#" + this.serialize(this.anchor) : (b ? "#": "")
		}
	}
})(Url);
var Ijax = {
	arrTaskLists: [],
	createLoadingIframe: function() {
		var a = this;
		if (this.loadFrames != null) {
			return false
		}
		var d = "loadingIframe_thread" + Math.ceil(Math.random() * 10000);
		this.loadFrames = d;
		var c = ['<iframe id="' + d + '" name="' + d + '" class="invisible"', ' scrolling="no" src=""', ' allowTransparency="true" style="display:none;" frameborder="0"', " ></iframe>"].join("");
		var b = document.createElement("div");
		b.id = "ijax_iframes";
		b.innerHTML = c;
		document.body.appendChild(b);
		if (document.getElementById(a.loadFrames) != null) {
			loadTimer = null;
			a.loadingIframe = {
				container: $E(a.loadFrames),
				isBusy: false
			};
			a.loadByList()
		}
	},
	isIjaxReady: function() {
		if (typeof this.loadingIframe == "undefined") {
			return false
		}
		if (this.loadingIframe.isBusy == false) {
			this.loadingIframe.isBusy = true;
			return this.loadingIframe
		}
		return false
	},
	request: function(a, c) {
		var b = {};
		b.url = a;
		b.option = c || {};
		this.arrTaskLists.push(b);
		if (this.loadFrames == null) {
			this.createLoadingIframe()
		} else {
			this.loadByList()
		}
	},
	loadByList: function() {
		if (this.arrTaskLists.length == 0) {
			return false
		}
		var b = this.isIjaxReady();
		if (b == false) {
			return false
		}
		var c = this.arrTaskLists[0];
		var a = this;
		setTimeout(function() {
			a.loadData(c.url, c.option, b)
		},
		10);
		this.arrTaskLists.shift()
	},
	destory: function() {
		if (this.arrTaskLists.length > 0) {
			return
		}
		$E(this.loadFrames).callback = null;
		document.body.removeChild($E("ijax_iframes"));
		this.loadFrames = null
	},
	loadData: function(url, option, loader) {
		var ifm = loader.container;
		var _self = this,
		_url = "";
		ifm.callback = function(res) {
			try {
				res = (typeof res == "string" && (/\s*{/.test(res))) ? eval("(" + res + ")") : res;
				if (res.code == "A00000" && option.onSuccess) {
					option.onSuccess(res.data);
					_self.destory()
				} else {
					option.onError(res)
				}
			} catch(e) {}
			loader.isBusy = false;
			_self.loadByList()
		};
		if (option.CACHE) {
			_url = url;
			for (var key in option.CACHE) {
				_url += "/" + option.CACHE[key]
			}
		} else {
			_url = new Url(url);
			if (option.GET) {
				for (var key in option.GET) {
					_url.setParam(key, encodeURIComponent(option.GET[key]))
				}
			}
			if (option.POST) {
				if (!$E("IjaxForm")) {
					var oIjaxForm = document.createElement("form");
					document.body.appendChild(oIjaxForm);
					oIjaxForm.id = "IjaxForm";
					oIjaxForm.method = "post";
					oIjaxForm.target = ifm.id
				} else {
					$E("IjaxForm").innerHTML = ""
				}
				$E("IjaxForm").action = _url;
				for (var oItem in option.POST) {
					var oInput = document.createElement("input");
					oInput.type = "hidden";
					oInput.name = oItem;
					oInput.value = option.POST[oItem];
					$E("IjaxForm").appendChild(oInput)
				}
				$E("IjaxForm").submit()
			}
		}
		if (!option.POST) {
			ifm.contentWindow.location.replace(_url)
		}
	}
};
var Interface = function(a, b) {
	this.url = a;
	this.type = b
};
Interface.prototype = {
	url: null,
	request: function(b) {
		var d = b.onError;
		var a = b.onSuccess;
		var c = this.url.toString();
		switch (this.type) {
		case "jsload":
			JsLoad.request(c, b);
			break;
		case "ijax":
		default:
			Ijax.request(c, b);
			break
		}
	}
};
var ReqUrl = {
	mark: "http://score.video.qiyi.com/v",
	initMark: "http://score.video.qiyi.com/f",
	playList: "http://cache.video.qiyi.com/l",
	ctgInfo: "http://cache.video.qiyi.com/a",
	keySearch: "http://search.video.qiyi.com",
	relevanceSearch: "http://search.video.qiyi.com",
	search: "http://search.video.qiyi.com"
};
var Tween = {}; (function() {
	var l = {
		simple: function(q, n, o, p) {
			return o * q / p + n
		},
		backEaseIn: function(o, n, r, q) {
			var p = 1.70158;
			return r * (o /= q) * o * ((p + 1) * o - p) + n
		},
		backEaseOut: function(q, n, w, v, o, u) {
			var r = 1.70158;
			return w * ((q = q / v - 1) * q * ((r + 1) * q + r) + 1) + n
		},
		backEaseInOut: function(q, n, w, v, o, u) {
			var r = 1.70158;
			if ((q /= v / 2) < 1) {
				return w / 2 * (q * q * (((r *= (1.525)) + 1) * q - r)) + n
			}
			return w / 2 * ((q -= 2) * q * (((r *= (1.525)) + 1) * q + r) + 2) + n
		},
		bounceEaseOut: function(o, n, q, p) {
			if ((o /= p) < (1 / 2.75)) {
				return q * (7.5625 * o * o) + n
			} else {
				if (o < (2 / 2.75)) {
					return q * (7.5625 * (o -= (1.5 / 2.75)) * o + 0.75) + n
				} else {
					if (o < (2.5 / 2.75)) {
						return q * (7.5625 * (o -= (2.25 / 2.75)) * o + 0.9375) + n
					} else {
						return q * (7.5625 * (o -= (2.625 / 2.75)) * o + 0.984375) + n
					}
				}
			}
		},
		bounceEaseIn: function(o, n, q, p) {
			return q - l.bounceEaseOut(p - o, 0, q, p) + n
		},
		bounceEaseInOut: function(o, n, q, p) {
			if (o < p / 2) {
				return l.bounceEaseIn(o * 2, 0, q, p) * 0.5 + n
			} else {
				return l.bounceEaseOut(o * 2 - p, 0, q, p) * 0.5 + q * 0.5 + n
			}
		},
		strongEaseInOut: function(o, n, q, p) {
			return q * (o /= p) * o * o * o * o + n
		},
		regularEaseIn: function(o, n, q, p) {
			return q * (o /= p) * o + n
		},
		regularEaseOut: function(o, n, q, p) {
			return - q * (o /= p) * (o - 2) + n
		},
		regularEaseInOut: function(o, n, q, p) {
			if ((o /= p / 2) < 1) {
				return q / 2 * o * o + n
			}
			return - q / 2 * ((--o) * (o - 2) - 1) + n
		},
		strongEaseIn: function(o, n, q, p) {
			return q * (o /= p) * o * o * o * o + n
		},
		strongEaseOut: function(o, n, q, p) {
			return q * ((o = o / p - 1) * o * o * o * o + 1) + n
		},
		strongEaseInOut: function(o, n, q, p) {
			if ((o /= p / 2) < 1) {
				return q / 2 * o * o * o * o * o + n
			}
			return q / 2 * ((o -= 2) * o * o * o * o + 2) + n
		},
		elasticEaseIn: function(q, n, w, v, o, u) {
			if (q == 0) {
				return n
			}
			if ((q /= v) == 1) {
				return n + w
			}
			if (!u) {
				u = v * 0.3
			}
			if (!o || o < Math.abs(w)) {
				o = w;
				var r = u / 4
			} else {
				var r = u / (2 * Math.PI) * Math.asin(w / o)
			}
			return - (o * Math.pow(2, 10 * (q -= 1)) * Math.sin((q * v - r) * (2 * Math.PI) / u)) + n
		},
		elasticEaseOut: function(q, n, w, v, o, u) {
			if (q == 0) {
				return n
			}
			if ((q /= v) == 1) {
				return n + w
			}
			if (!u) {
				u = v * 0.3
			}
			if (!o || o < Math.abs(w)) {
				o = w;
				var r = u / 4
			} else {
				var r = u / (2 * Math.PI) * Math.asin(w / o)
			}
			return (o * Math.pow(2, -10 * q) * Math.sin((q * v - r) * (2 * Math.PI) / u) + w + n)
		},
		elasticEaseInOut: function(q, n, w, v, o, u) {
			if (q == 0) {
				return n
			}
			if ((q /= v / 2) == 2) {
				return n + w
			}
			if (!u) {
				var u = v * (0.3 * 1.5)
			}
			if (!o || o < Math.abs(w)) {
				var o = w;
				var r = u / 4
			} else {
				var r = u / (2 * Math.PI) * Math.asin(w / o)
			}
			if (q < 1) {
				return - 0.5 * (o * Math.pow(2, 10 * (q -= 1)) * Math.sin((q * v - r) * (2 * Math.PI) / u)) + n
			}
			return o * Math.pow(2, -10 * (q -= 1)) * Math.sin((q * v - r) * (2 * Math.PI) / u) * 0.5 + w + n
		}
	};
	var g = function(n) {
		return n.uniqueID
	};
	if (!$IE) {
		g = function(o) {
			try {
				var n;
				if (o.getAttribute("uniqueID") == null) {
					n = "moz__id" + parseInt(Math.random() * 100) + "_" + new Date().getTime();
					o.setAttribute("uniqueID", n);
					return n
				}
				return o.getAttribute("uniqueID")
			} finally {
				n = null
			}
		}
	}
	function j(o) {
		try {
			var n = o.constructor.toString().toLowerCase();
			return n.slice(n.indexOf("function") + 9, n.indexOf("()"))
		} finally {
			n = null
		}
	}
	function h(r, q) {
		var p, o, n = [];
		o = q.length;
		for (p = 0; p < o; p++) {
			n[n.length] = parseFloat(r.style[q[p]])
		}
		return n
	}
	function k(n) {
		return j(n) != "array" ? [n] : n
	}
	function c(n, t) {
		try {
			var q = j(n);
			var u = [],
			s = [],
			r,
			p,
			o;
			if (q != "array") {
				o = f(n);
				o[1] = t == "opacity" ? "": o[1];
				u = [o[0]];
				s = [o[1]]
			} else {
				p = n.length;
				for (r = 0; r < p; r++) {
					o = f(n[r]);
					o[1] = t[r] == "opacity" ? "": o[1];
					u[u.length] = o[0];
					s[s.length] = o[1]
				}
			}
			return [u, s]
		} finally {
			q = u = s = r = p = o = null
		}
	}
	function f(o) {
		try {
			var n = /(-?\d.?\d*)([a-z%]*)/i.exec(o);
			return [n[1], n[2] ? n[2] : "px"]
		} finally {
			n = null
		}
	}
	var a = {};
	var e = {};
	function b(p) {
		try {
			var o = g(p);
			var n;
			if (a[o] != true) {
				n = new d();
				e[o] = {
					node: p,
					func: n
				};
				a[o] = true;
				return n
			} else {
				return e[o].func
			}
		} finally {
			o = n = null
		}
	}
	function d() {
		this._timer = null
	}
	d.prototype.start = function(v, u, q, t, r, w) {
		this.reset();
		w = w || {};
		if (w.end) {
			this._func.end = w.end
		}
		if (w.tween) {
			this._func.tween = w.tween
		}
		var o = k(u);
		var n = h(v, o);
		var p = c(q, o);
		this._node = v;
		this._property = o;
		this._endingvalue = p[0];
		this._suffixvalue = p[1];
		this._startvalue = n;
		this._end = false;
		this._fps = 0;
		if (t != null) {
			this._seconds = t
		}
		if (l[r] != null) {
			this._animation = l[r]
		}
		this._starttime = new Date().getTime();
		var s = this;
		this._timer = setInterval(function() {
			s.play()
		},
		10)
	};
	d.prototype.play = function() {
		var n = this;
		var s = (new Date().getTime() - this._starttime) / 1000;
		var q, p, o = this._property.length;
		if (s > this._seconds) {
			s = this._seconds
		}
		for (q = 0; q < o; q++) {
			p = this._animation(s, this._startvalue[q], this._endingvalue[q] - this._startvalue[q], this._seconds);
			var r = {};
			r[n._property[q]] = p + n._suffixvalue[q];
			$setStyle(n._node, r)
		}
		this._fps++;
		this._func.tween();
		if (s == this._seconds) {
			this.stop()
		}
	};
	d.prototype.stop = function() {
		clearInterval(this._timer);
		this._end = true;
		this._func.end()
	};
	d.prototype.reset = function() {
		clearInterval(this._timer);
		this._end = false;
		this._node = null;
		this._property = [];
		this._startvalue = [];
		this._endingvalue = [];
		this._suffixvalue = [];
		this._fps = 0;
		this._seconds = 0.5;
		this._animation = l.simple;
		this._func = {
			end: function() {},
			tween: function() {}
		}
	};
	function m(s, t, o, r, p, q) {
		var n = b(s);
		n.start.apply(n, arguments)
	}
	m.stop = function(n) {
		b(n).stop()
	};
	m.isTween = function(n) {
		return ! b(n)._end
	};
	Tween = m
})();
if (Cookie === undefined) {
	var Cookie = {}
}
Cookie.getCookie = function(a) {
	a = a.replace(/([\.\[\]\$])/g, "\\$1");
	var c = new RegExp(a + "=([^;]*)?;", "i");
	var d = document.cookie + ";";
	var b = d.match(c);
	if (b) {
		return b[1] || ""
	} else {
		return ""
	}
};
if (Cookie === undefined) {
	var Cookie = {}
}
Cookie.setCookie = function(b, f, c, j, e, a) {
	var g = [];
	g.push(b + "=" + escape(f));
	if (c) {
		var h = new Date();
		var d = h.getTime() + c * 3600000;
		h.setTime(d);
		g.push("expires=" + h.toGMTString())
	}
	if (j) {
		g.push("path=" + j)
	}
	if (e) {
		g.push("domain=" + e)
	}
	if (a) {
		g.push(a)
	}
	document.cookie = g.join(";")
};
var TabDom = {
	body: ["<div class='title1 titleBg'>", "</div>"].join(""),
	nav: ["<span>{0}</span>"].join("")
};
var Tabs = function(c, a) {
	this.menuLen = 0;
	this.active = null;
	this.selected = 0;
	c = c || document.body;
	var b = $C("div");
	if (this.menuLen < 1) {
		c.innerHTML = TabDom.body
	}
	this.type = a;
	this.dom = c;
	this.navs = getElementByClz(this.dom, "div", "title1")[0];
	return this
};
Tabs.prototype.newTab = function(b, c, f, d, g) {
	var e = this;
	if (d) {
		g = g || "titleSpan";
		var j = $C("span");
		j.innerHTML = b;
		j.className = g;
		this.selected = this.menuLen;
		e.navs.appendChild(j);
		return
	}
	var h = $C("h2");
	var a = $C("div");
	h.id = "tab-" + e.type + "-" + this.menuLen;
	if (this.menuLen == this.selected) {
		h.className = "selected";
		a.style.display = "block";
		e.active = h
	} else {
		a.style.display = "none"
	}
	h.innerHTML = TabDom.nav.format(b);
	a.id = "cnt-" + e.type + "-" + (this.menuLen);
	e.navs.appendChild(h);
	e.dom.appendChild(a);
	if (typeof c != "undefined") {
		a.innerHTML = c
	}
	h.onclick = function() {
		var k, l;
		if (e.active) {
			if (e.active == this) {
				return
			}
			e.active.className = "";
			k = e.active.id;
			l = k.match(/\d/g);
			$E("cnt-" + e.type + "-" + l).style.display = "none"
		}
		if ($IE6) {
			a.style.filter = " alpha(opacity = 0)"
		} else {
			a.style.opacity = "0"
		}
		this.className = "selected";
		Tween(a, "opacity", 1, 0.5, "simple");
		a.style.display = "block";
		e.active = h;
		if (typeof f == "function") {
			f()
		}
	};
	this.menuLen++;
	e.nav = h;
	e.cnt = a
};
Tabs.prototype.setContent = function(b, a) {
	this.cnt.innerHTML = b;
	this.cnt.style.width = "100%"
};
var Search = function() {
	this.url = new Interface(ReqUrl.search)
};
Search.prototype = {
	relevance: function(b) {
		var a = this;
		this.url.request({
			CACHE: b,
			onSuccess: function(c) {
				a.relevanceSuccess(c)
			},
			onError: function(c) {
				alert("err");
				a.relevanceError(c)
			}
		})
	},
	search: function(b) {
		var a = this;
		this.url.request({
			CACHE: b,
			onSuccess: function(c) {
				a.searchSuccess(c)
			},
			onError: function(c) {
				alert("err");
				a.searchError(c)
			}
		})
	},
	suggest: function(b) {
		var a = this;
		this.url.request({
			CACHE: b,
			onSuccess: function(c) {
				a.suggestSuccess(c)
			},
			onError: function(c) {
				a.suggestError(c)
			}
		})
	},
	index: function(b) {
		var a = this;
		this.url.request({
			CACHE: b,
			onSuccess: function(c) {
				a.indexSuccess(c)
			},
			onError: function(c) {
				a.indexError(c)
			}
		})
	},
	indexSuccess: function(a) {},
	indexError: function(a) {},
	searchByCtg: function(b) {
		var a = this;
		this.url.request({
			CACHE: b,
			onSuccess: function(c) {
				a.ctgSuccess(c)
			},
			onError: function(c) {
				a.ctgError(c)
			}
		})
	},
	ctgSuccess: function(a) {},
	ctgError: function(a) {}
};
function SuggestFun(c) {
	var b = this;
	var a = new Search();
	var e;
	var g = [];
	var d = 100;
	this.suggestParam = {
		url: ""
	};
	this.setURL = function(j) {
		var h = "userSuggest/" + encodeURIComponent(j).replace(/\%/g, "_") + "/" + 10 + "/";
		return h
	};
	a.suggestSuccess = function(h) {
		var k = "",
		j = $E("navFormList");
		if ($Maxthon) {
			k = '<iframe id="j-suggest-iframe" frameBorder="0" style="display:;width:265px;height:0;" ></iframe>'
		}
		if (h.length != 0) {
			$E("navFormList").style.display = "block";
			e = suggestDom.format(h[0]);
			for (i = 1; i < h.length; i++) {
				e = e + suggestDom.format(h[i])
			}
		} else {
			$E("navFormList").style.display = "none"
		}
		$E(c).innerHTML = k + e;
		if ($Maxthon) {
			$E("j-suggest-iframe").style.display = "block";
			$E("j-suggest-iframe").style.height = j.offsetHeight + "px";
			j.getElementsByTagName("li")[0].style.cssText = "margin-top:-" + $E("j-suggest-iframe").style.height
		}
		g = $E(c).getElementsByTagName("a");
		for (i = 0; i < g.length; i++) {
			g[i].num = i;
			g[i].onmouseover = function() {
				try {
					g[d].className = ""
				} catch(l) {}
				d = this.num;
				f(d);
				return false
			}
		}
	};
	a.suggestError = function() {
		$E("navFormList").style.display = "none"
	};
	$E("suggestText").onkeyup = function(j) {
		var j = j || event;
		var h = j.keyCode ? j.keyCode: j.which;
		if (this.value != b.suggestParam.keyWord && this.value != "" && (h < 106 && h > 48 || h == 13 || h == 8 || h == 32)) {
			b.suggestParam.url = b.setURL(this.value);
			a.suggest(b.suggestParam)
		}
		if (h == 38) {
			try {
				g[d].className = ""
			} catch(j) {}
			d < 1 ? (d = g.length - 1) : (d = (d - 1) % g.length);
			f(d)
		}
		if (h == 40) {
			try {
				g[d].className = ""
			} catch(j) {}
			d == 100 ? (d = 0) : (d = (d + 1) % g.length);
			f(d)
		}
	};
	$E("suggestText").onblur = function() {
		$E("navFormList").style.display = "none"
	};
	function f(h) {
		g[h].className = "a1";
		$E("suggestText").value = g[h].innerHTML
	}
}
function doLinkEffect() {
	$E("navFormList").style.display = "none"
}
var suggestDom = '<li><a href="#" onclick="doLinkEffect(this);">{0}</a></li>';
var SuggestFun = new SuggestFun("navFormList");
$addEvent("searchClick",
function() {
	if ($E("suggestText").value != "") {
		var a = "http://www.qiyi.com/common/searchresult.html?key=" + encodeURIComponent($E("suggestText").value);
		window.location.href = a
	}
},
"click");
$addEvent("suggestText",
function(a) {
	a = a || window.event;
	if (a.keyCode != 13) {
		return
	}
	if ($E("suggestText").value != "") {
		var b = "http://www.qiyi.com/common/searchresult.html?key=" + encodeURIComponent($E("suggestText").value);
		window.location.href = b
	}
},
"keydown");
function ShowHideObj(e, a, c, d) {
	var b = {
		eventType: e || "mouseover",
		openClassName: a || "selected",
		closeClassName: c || "",
		defaultNum: d || 1,
		array: []
	};
	var g = this;
	var f = function(l, k, h) {
		if (l && l.addEventListener) {
			l.addEventListener(k, h, false);
			return true
		} else {
			if (l && l.attachEvent) {
				var j = l.attachEvent("on" + k, h);
				return j
			}
		}
	};
	this.mouseoutHide = false;
	this.addElement = function(j, k, h) {
		document.getElementById(j).num = b.array.length;
		document.getElementById(j).childNode = document.getElementById(k);
		b.array.push(document.getElementById(j));
		b.defaultNum == b.array.length ? (document.getElementById(j).className = b.openClassName, document.getElementById(k) && (document.getElementById(k).style.display = "block"), b.openNode = document.getElementById(j)) : (document.getElementById(j).className = b.closeClassName, document.getElementById(k) && (document.getElementById(k).style.display = "none"));
		b.defaultNum == -1 && (b.openNode = b.array[0]);
		f(document.getElementById(j), b.eventType,
		function() {
			if (h) {
				h()
			}
			g.showItem(document.getElementById(j))
		})
	};
	this.showItem = function(h) {
		b.openNode.className = b.closeClassName;
		b.openNode.childNode && (b.openNode.childNode.style.display = "none");
		h.className = b.openClassName;
		h.childNode && (h.childNode.style.display = "block");
		b.openNode = h;
		if ($IE8) {
			cssText_ = "visibility:hidden;"
		} else {
			cssText_ = "display:none;"
		}
		if (this.mouseoutHide) {
			h.childNode && (h.childNode.style.cssText = "");
			b.openNode.onmouseover = function() {
				b.openNode.className = b.openClassName;
				b.openNode.childNode && (b.openNode.childNode.style.cssText = "")
			};
			b.openNode.childNode.onmouseover = function() {
				b.openNode.className = b.openClassName;
				b.openNode.childNode && (b.openNode.childNode.style.cssText = "")
			};
			b.openNode.onmouseout = function() {
				b.openNode.className = b.closeClassName;
				b.openNode.childNode && (b.openNode.childNode.style.cssText = cssText_)
			};
			b.openNode.childNode.onmouseout = function() {
				b.openNode.className = b.closeClassName;
				b.openNode.childNode && (b.openNode.childNode.style.cssText = cssText_)
			}
		}
	}
}
var showTop1 = new ShowHideObj("", "a2", "a1", -1);
if (document.getElementById("topT2")) {
	showTop1.addElement("topT2", "topC2");
	var showTop = new ShowHideObj();
	showTop.addElement("topTT1", "topCC1",
	function() {
		resizeIframe()
	});
	showTop.addElement("topTT2", "topCC2",
	function() {
		document.getElementById("topCC2").style.cssText = "background:#f2f2da;display:block;"
	});
	showTop.addElement("topTT3", "topCC3",
	function() {
		resizeIframe()
	});
	showTop.addElement("topTT4", "topCC4",
	function() {
		document.getElementById("topCC4").style.cssText = "background:#f2f2da;display:block;"
	})
}
showTop1.mouseoutHide = true;
function resizeIframe() {
	if ($Maxthon) {
		var c = document.getElementById("topC2");
		if (c) {
			var b = c.getElementsByTagName("div")[0];
			var d = c.getElementsByTagName("iframe")[0];
			var a = 0;
			c.style.display = "block";
			c.style.visibility = "hidden";
			a = c.offsetHeight;
			c.style.visibility = "";
			c.style.display = "none";
			d.style.display = "block";
			if (d) {
				d.style.height = a + "px"
			}
			if (b) {
				b.style.marginTop = -a + "px"
			}
		}
	}
};